package com.xiyuan.smartutils.constants;


/**
 * HTML常量定义
 *
 * @version v1.0.0 @author lgz 2017-8-27 新建与整理
 */

public interface HtmlConstants extends SignConstants
{
    /*************************************************************/
    //Html相关
    /*************************************************************/
    
    public static final String _HTML_5_TYPE_        = "<!DOCTYPE html>";
    
    public static final String _HTML                = "<html>";
    public static final String  HTML_               = "</html>";
    public static final String _HEAD                = "<head>";
    public static final String  HEAD_               = "</head>";
    public static final String _TITLE               = "<title>";
    public static final String  TITLE_              = "</title>";
    public static final String _SCRIPT              = "<script>";
    public static final String _SCRIPT_PRE          = "<script";
    public static final String _SCRIPT_BR           = "<script>\r\n";
    public static final String  SCRIPT_             = "</script>";
    public static final String _STYLE               = "<style>";
    public static final String _STYLE_BR            = "<style>\r\n";
    public static final String  STYLE_              = "</style>";
    
    public static final String _BODY                = "<body>";
    public static final String  BODY_               = "</body>";
    
    public static final String _TABLE               = "<table id=\"%id\" width=\"%w\" align=\"%a\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"%b\" class=\"%c\" sytle=\"%s\">";
    public static final String  TABLE_              = "</table>";
    public static final String _TR                  = "<tr>";
    public static final String  TR_                 = "</tr>";
    public static final String _TD                  = "<td id=\"%id\" width=\"%w\" align=\"%a\" class=\"%c\" sytle=\"%s\">";
    public static final String  TD_                 = "</td>";
    
    public static final String _DIV                 = "<div id=\"%id\" class=\"%c\" sytle=\"%s\">";
    public static final String  DIV_                = "</div>";
    
    /*************************************************************/
    //Script相关
    /*************************************************************/

    public static final String SCRIPT_HEAD_VALIDATE = "function validateForm(form)\r\n{\r\n";
    public static final String SCRIPT_TAIL_VALIDATE = _FOUR_SPACE_ + "return true;\r\n}\r\n\r\n";
    
    public static final String SCRIPT_HEAD_SUBMIT   = "function submitForm(form)\r\n{\r\n";
    public static final String SCRIPT_TAIL_SUBMIT   = "}\r\n\r\n";
}
